import Vue from 'vue'
import App from './App.vue'
import router from './router' //导入路由对象
import store from './store'
import axios from "axios";

//设置全局配置
axios.defaults.baseURL="http://localhost:8888"

// 添加Axios响应拦截器
axios.interceptors.response.use(function (response) {
  //console.log('响应拦截',response)
  return response.data;
}, function (error) {
  console.log(error)
});

Vue.config.productionTip = false

new Vue({
  router,//对象
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
